{% extends 'PHPDishWebBundle:User:view_common.html.twig' %}

{% if tab  is not defined %}
{% set tab = 'following' %}
{% endif %}

{% if users.count %}
    {% block entry_meta %}
        <span>共关注{{ users.count }}个用户</span>
    {% endblock %}
{% endif %}

{% block user_content %}
    {% if users.count %}
    <div class="panel-body user-list">
        {% include 'PHPDishWebBundle:User:user_list.html.twig' %}
    </div>
    {% else %}
        <div class="empty-data">
            <p><i class="if i-fan"></i> 还没有{{ tab == 'following' ? '关注' : '粉丝' }}</p>
        </div>
    {% endif %}
{% endblock %}